package org.eden.karb.event;

/**
 * Generic event listener. An object that implements this interface is capable of listening to events to type <T>.
 *
 * @param <T> event type
 * @author trsimoes
 */
public interface EventListener<T extends Event> {

    /**
     * Method called when an event dispatcher publishes an event of type <T>.
     * @param event published event
     */
    void onEvent(T event);
}
